package com.solution.admin.report.dao.impl;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.solution.admin.report.dao.CustomerGenderDistributionDao;
import com.solution.admin.report.entity.CustomerGenderDistributionEntity;
import com.solution.common.dao.impl.BaseDaoImpl;

/**
 * 客户性别分布DAO实现层
 * @author: solin
 * @date: 2018年1月3日 下午8:47:11
 */
@Repository
public class CustomerGenderDistributionDaoImpl extends BaseDaoImpl<CustomerGenderDistributionEntity> implements CustomerGenderDistributionDao {
	@Autowired
	private SqlSessionTemplate sqlSessionTemplate;
	
	/**
	 * 获取客户性别分布
	 * @return
	 * @author: solin
	 * @date: 2018年1月3日 下午8:47:33 
	 */
	@Override
	public List<CustomerGenderDistributionEntity> getCustomerGenderDistributionList() {
		return sqlSessionTemplate.selectList("getCustomerGenderDistributionList");
	}

}
